package org.leo.study.elasticsearch.models.es.repository;

import org.leo.study.elasticsearch.models.es.entity.MerchandiseEntity;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @Package: org.leo.study.elasticsearch.models.es.repository
 * @ClassName: MerchandiseRepository
 * @author: Li.Junlin
 * @date: 2019.11.13 17:32
 */
public interface MerchandiseRepository extends ElasticsearchRepository<MerchandiseEntity, Long> {

    List<MerchandiseEntity> findByPriceBetween(double price1, double price2);
}
